/*
 * @Author: cz
 * @Date: 2019-05-13 10:51
 * @Last Modified by:
 * @Last Modified time: 2019-05-13 10:51
 * @Description: 课题相关
 */

import request from '@/router/axios'
import {makeUrls} from '@/const/apiUrl'



/**
 * 分页查询课题意见征集
 * @param {*} query
 */
export function connectionFeedback (query) {
  return request({
    url: makeUrls.connectionFeedback+query.connectId,
    method: 'put',
    data:query.projectForm
  })
}


/**
 * 新增规划编制衔接
 * @param {*} query
 */
export function addPlanConnection (query) {
  return request({
    url: makeUrls.addPlanConnection,
    method: 'post',
    data: query
  })
}


/**
 * 材料收集任务详情
 * @param {*} query
 */
export function planConnectionFeedback(connectId) {
  return request({
    url: makeUrls.planConnectionFeedback + connectId,
    method: 'get'
  })
}

/**
 * 材料收集任务详情
 * @param {*} query
 */
export function getPlanConnectionSingle(query) {
  return request({
    url: makeUrls.getPlanConnectionSingle,
    method: 'get',
    params:query
  })
}

/**
 *
 * 材料收集任务详情
 * @param {*} query
 */
export function getConnectionList(query) {
  return request({
    url: makeUrls.getConnectionList,
    method: 'get',
    params:query
  })
}


/**
 * 课题列表查询
 * @param {*} query
 */
export function getPlaitFileList (query) {
  return request({
    url: makeUrls.getPlaitFileList,
    method: 'get',
    params:query
  })
}

/**
 * 添加评审意见
 * @param {*} query
 */
export function addMakeExpert (query) {
  return request({
    url: makeUrls.addMakeExpert,
    method: 'post',
    data:query
  })
}

/**
 * 查询评审意见列表
 * @param {*} query
 */
export function getMakeExpertList (query) {
  return request({
    url: makeUrls.getMakeExpertList,
    method: 'get',
    params:query
  })
}

/**
 * 根据Id查询评审意见详情
 * @param {*} query
 */
export function getExpert (expertId) {
  return request({
    url: makeUrls.getExpert + expertId,
    method: 'get'
  })
}

/**
 * 上传规划编制文本
 * @param {*} query
 */
export function uploadMake (query) {
  return request({
    url: makeUrls.uploadMake,
    method: 'post',
    data:query
  })
}


/**
 * 规划编制列表
 * @param {*} query
 */
export function makeList (query) {
  return request({
    url: makeUrls.makeList,
    method: 'get',
    params:query
  })
}
